﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.DAL;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.VO;
using System.Data;

namespace Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS
{
    class UserBusChiTietHDBan
    {
        private ChiTietHDBan CTHD;

        public UserBusChiTietHDBan()
        {
            CTHD = new ChiTietHDBan();
        }

        public bool Insert(UserVOChiTietHDBan obj)
        {
            return CTHD.Insert(obj.MAHOADONBAN,obj.MASANPHAM,obj.SOLUONG);
        }

        public bool Update(UserVOChiTietHDBan obj)
        {
            return CTHD.Update(obj.MAHOADONBAN, obj.MASANPHAM, obj.SOLUONG);
        }

        public bool Delete(UserVOChiTietHDBan obj)
        {
            return CTHD.Delete(obj.MAHOADONBAN);
        }

        public DataTable SelectAllTable()
        {
            return CTHD.SelectAll();
        }

        public DataTable SelectID(string MaHDBan)
        {
            return CTHD.SelectID(MaHDBan);
        }       
    }
}
